<?php
class RedpackRiskcontrol extends ActiveRecord
{
    public $id_redpack_riskcontrol;
    public $id_merchant;
    public $id_wxuser;
    public $times;
    public $createtime;
    public $updatetime;

    const ADD_TIMES = 1;
    const DEL_STATUS = 1;
    const UNDEL_STATUS = 0;

    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }

    public function tableName()
    {
        return 'redpack_riskcontrol';
    }

    /**
     * @return array validation rules for model attributes.
     */
    public function rules()
    {
        return array(
            array('id_redpack_riskcontrol, id_merchant, id_wxuser, times, createtime, updatetime', 'safe'),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels()
    {
        return array(

        );
    }
}
